<?php
include "../config.php";
$id=$_GET['id'];
$sql="delete from dingdan where id='$id'";
$jieguo=$conn->query($sql);
if($jieguo){
    echo "<script language='javascript'>window.location.href='./list.php';</script>";
}else{
    echo "<script language='javascript'>alert('报告老大，删除失败！');history.go(-1);</script>";
}